Optimal. Leaf size=172 \[ -\frac{4 \cot ^7(e+f x) (a \sec (e+f x)+a)^{7/2}}{7 a^2 c^4 f}+\frac{2 a^{3/2} \tan ^{-1}\left (\frac{\sqrt{a} \tan (e+f x)}{\sqrt{a \sec (e+f x)+a}}\right )}{c^4 f}+\frac{2 \cot ^5(e+f x) (a \sec (e+f x)+a)^{5/2}}{5 a c^4 f}-\frac{2 \cot ^3(e+f x) (a \sec (e+f x)+a)^{3/2}}{3 c^4 f}+\frac{2 a \cot (e+f x) \sqrt{a \sec (e+f x)+a}}{c^4 f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.186627, antiderivative size = 172, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 5, integrand size = 28, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.179, Rules used = {3904, 3887, 453, 325, 203} \[ -\frac{4 \cot ^7(e+f x) (a \sec (e+f x)+a)^{7/2}}{7 a^2 c^4 f}+\frac{2 a^{3/2} \tan ^{-1}\left (\frac{\sqrt{a} \tan (e+f x)}{\sqrt{a \sec (e+f x)+a}}\right )}{c^4 f}+\frac{2 \cot ^5(e+f x) (a \sec (e+f x)+a)^{5/2}}{5 a c^4 f}-\frac{2 \cot ^3(e+f x) (a \sec (e+f x)+a)^{3/2}}{3 c^4 f}+\frac{2 a \cot (e+f x) \sqrt{a \sec (e+f x)+a}}{c^4 f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3904
Rule 3887
Rule 453
Rule 325
Rule 203
Rubi steps
\begin{align*} \int \frac{(a+a \sec (e+f x))^{3/2}}{(c-c \sec (e+f x))^4} \, dx &=\frac{\int \cot ^8(e+f x) (a+a \sec (e+f x))^{11/2} \, dx}{a^4 c^4}\\ &=-\frac{2 \operatorname{Subst}\left (\int \frac{2+a x^2}{x^8 \left (1+a x^2\right )} \, dx,x,-\frac{\tan (e+f x)}{\sqrt{a+a \sec (e+f x)}}\right )}{a^2 c^4 f}\\ &=-\frac{4 \cot ^7(e+f x) (a+a \sec (e+f x))^{7/2}}{7 a^2 c^4 f}+\frac{2 \operatorname{Subst}\left (\int \frac{1}{x^6 \left (1+a x^2\right )} \, dx,x,-\frac{\tan (e+f x)}{\sqrt{a+a \sec (e+f x)}}\right )}{a c^4 f}\\ &=\frac{2 \cot ^5(e+f x) (a+a \sec (e+f x))^{5/2}}{5 a c^4 f}-\frac{4 \cot ^7(e+f x) (a+a \sec (e+f x))^{7/2}}{7 a^2 c^4 f}-\frac{2 \operatorname{Subst}\left (\int \frac{1}{x^4 \left (1+a x^2\right )} \, dx,x,-\frac{\tan (e+f x)}{\sqrt{a+a \sec (e+f x)}}\right )}{c^4 f}\\ &=-\frac{2 \cot ^3(e+f x) (a+a \sec (e+f x))^{3/2}}{3 c^4 f}+\frac{2 \cot ^5(e+f x) (a+a \sec (e+f x))^{5/2}}{5 a c^4 f}-\frac{4 \cot ^7(e+f x) (a+a \sec (e+f x))^{7/2}}{7 a^2 c^4 f}+\frac{(2 a) \operatorname{Subst}\left (\int \frac{1}{x^2 \left (1+a x^2\right )} \, dx,x,-\frac{\tan (e+f x)}{\sqrt{a+a \sec (e+f x)}}\right )}{c^4 f}\\ &=\frac{2 a \cot (e+f x) \sqrt{a+a \sec (e+f x)}}{c^4 f}-\frac{2 \cot ^3(e+f x) (a+a \sec (e+f x))^{3/2}}{3 c^4 f}+\frac{2 \cot ^5(e+f x) (a+a \sec (e+f x))^{5/2}}{5 a c^4 f}-\frac{4 \cot ^7(e+f x) (a+a \sec (e+f x))^{7/2}}{7 a^2 c^4 f}-\frac{\left (2 a^2\right ) \operatorname{Subst}\left (\int \frac{1}{1+a x^2} \, dx,x,-\frac{\tan (e+f x)}{\sqrt{a+a \sec (e+f x)}}\right )}{c^4 f}\\ &=\frac{2 a^{3/2} \tan ^{-1}\left (\frac{\sqrt{a} \tan (e+f x)}{\sqrt{a+a \sec (e+f x)}}\right )}{c^4 f}+\frac{2 a \cot (e+f x) \sqrt{a+a \sec (e+f x)}}{c^4 f}-\frac{2 \cot ^3(e+f x) (a+a \sec (e+f x))^{3/2}}{3 c^4 f}+\frac{2 \cot ^5(e+f x) (a+a \sec (e+f x))^{5/2}}{5 a c^4 f}-\frac{4 \cot ^7(e+f x) (a+a \sec (e+f x))^{7/2}}{7 a^2 c^4 f}\\ \end{align*}
Mathematica [C] time = 1.32685, size = 102, normalized size = 0.59 \[ -\frac{2 a \sqrt{\cos (e+f x)} \tan \left (\frac{1}{2} (e+f x)\right ) \sqrt{a (\sec (e+f x)+1)} \left (7 (\cos (e+f x)-1) \text{Hypergeometric2F1}\left (-\frac{5}{2},-\frac{5}{2},-\frac{3}{2},2 \sin ^2\left (\frac{1}{2} (e+f x)\right )\right )+10 \cos ^{\frac{7}{2}}(e+f x)\right )}{35 c^4 f (\cos (e+f x)-1)^4} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.314, size = 401, normalized size = 2.3 \begin{align*}{\frac{a \left ( 1+\cos \left ( fx+e \right ) \right ) }{105\,f{c}^{4} \left ( \sin \left ( fx+e \right ) \right ) ^{3} \left ( -1+\cos \left ( fx+e \right ) \right ) ^{2}}\sqrt{{\frac{a \left ( 1+\cos \left ( fx+e \right ) \right ) }{\cos \left ( fx+e \right ) }}} \left ( 105\,\sqrt{2} \left ( \cos \left ( fx+e \right ) \right ) ^{3}\sin \left ( fx+e \right ) \sqrt{-2\,{\frac{\cos \left ( fx+e \right ) }{1+\cos \left ( fx+e \right ) }}}{\it Artanh} \left ( 1/2\,{\frac{\sqrt{2}\sin \left ( fx+e \right ) }{\cos \left ( fx+e \right ) }\sqrt{-2\,{\frac{\cos \left ( fx+e \right ) }{1+\cos \left ( fx+e \right ) }}}} \right ) -315\, \left ( \cos \left ( fx+e \right ) \right ) ^{2}\sin \left ( fx+e \right ) \sqrt{2}\sqrt{-2\,{\frac{\cos \left ( fx+e \right ) }{1+\cos \left ( fx+e \right ) }}}{\it Artanh} \left ( 1/2\,{\frac{\sqrt{2}\sin \left ( fx+e \right ) }{\cos \left ( fx+e \right ) }\sqrt{-2\,{\frac{\cos \left ( fx+e \right ) }{1+\cos \left ( fx+e \right ) }}}} \right ) +315\,\sqrt{2}\cos \left ( fx+e \right ) \sin \left ( fx+e \right ) \sqrt{-2\,{\frac{\cos \left ( fx+e \right ) }{1+\cos \left ( fx+e \right ) }}}{\it Artanh} \left ( 1/2\,{\frac{\sqrt{2}\sin \left ( fx+e \right ) }{\cos \left ( fx+e \right ) }\sqrt{-2\,{\frac{\cos \left ( fx+e \right ) }{1+\cos \left ( fx+e \right ) }}}} \right ) -105\,\sqrt{2}\sin \left ( fx+e \right ){\it Artanh} \left ( 1/2\,{\frac{\sqrt{2}\sin \left ( fx+e \right ) }{\cos \left ( fx+e \right ) }\sqrt{-2\,{\frac{\cos \left ( fx+e \right ) }{1+\cos \left ( fx+e \right ) }}}} \right ) \sqrt{-2\,{\frac{\cos \left ( fx+e \right ) }{1+\cos \left ( fx+e \right ) }}}-382\, \left ( \cos \left ( fx+e \right ) \right ) ^{4}+812\, \left ( \cos \left ( fx+e \right ) \right ) ^{3}-700\, \left ( \cos \left ( fx+e \right ) \right ) ^{2}+210\,\cos \left ( fx+e \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.62543, size = 1283, normalized size = 7.46 \begin{align*} \left [\frac{105 \,{\left (a \cos \left (f x + e\right )^{3} - 3 \, a \cos \left (f x + e\right )^{2} + 3 \, a \cos \left (f x + e\right ) - a\right )} \sqrt{-a} \log \left (-\frac{8 \, a \cos \left (f x + e\right )^{3} - 4 \,{\left (2 \, \cos \left (f x + e\right )^{2} - \cos \left (f x + e\right )\right )} \sqrt{-a} \sqrt{\frac{a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \sin \left (f x + e\right ) - 7 \, a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right ) + 1}\right ) \sin \left (f x + e\right ) + 4 \,{\left (191 \, a \cos \left (f x + e\right )^{4} - 406 \, a \cos \left (f x + e\right )^{3} + 350 \, a \cos \left (f x + e\right )^{2} - 105 \, a \cos \left (f x + e\right )\right )} \sqrt{\frac{a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}}}{210 \,{\left (c^{4} f \cos \left (f x + e\right )^{3} - 3 \, c^{4} f \cos \left (f x + e\right )^{2} + 3 \, c^{4} f \cos \left (f x + e\right ) - c^{4} f\right )} \sin \left (f x + e\right )}, \frac{105 \,{\left (a \cos \left (f x + e\right )^{3} - 3 \, a \cos \left (f x + e\right )^{2} + 3 \, a \cos \left (f x + e\right ) - a\right )} \sqrt{a} \arctan \left (\frac{2 \, \sqrt{a} \sqrt{\frac{a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \cos \left (f x + e\right ) \sin \left (f x + e\right )}{2 \, a \cos \left (f x + e\right )^{2} + a \cos \left (f x + e\right ) - a}\right ) \sin \left (f x + e\right ) + 2 \,{\left (191 \, a \cos \left (f x + e\right )^{4} - 406 \, a \cos \left (f x + e\right )^{3} + 350 \, a \cos \left (f x + e\right )^{2} - 105 \, a \cos \left (f x + e\right )\right )} \sqrt{\frac{a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}}}{105 \,{\left (c^{4} f \cos \left (f x + e\right )^{3} - 3 \, c^{4} f \cos \left (f x + e\right )^{2} + 3 \, c^{4} f \cos \left (f x + e\right ) - c^{4} f\right )} \sin \left (f x + e\right )}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]